package com.example.es.service.impl;

import com.example.es.mapper.ProductsMapper;
import com.example.es.pojo.Products;
import com.example.es.service.ProductsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

@Service
public class ProductsServiceImpl implements ProductsService {
    @Autowired
    private ProductsMapper productsMapper;
    @Override
    public Products findById(Integer id) {
        return productsMapper.selectById(id);
    }
}
